package com.example.seataaccountsys.service;

import com.example.seataaccountsys.domain.Account;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 *
 */
public interface AccountService extends IService<Account> {
    /**
     * 扣减账户余额
     *
     * @param userId Long
     * @param money  BigDecimal
     */
    void decrease(Long userId, BigDecimal money);
}
